home *** CD-ROM | disk | FTP | other *** search
MacBinary | 2001-03-26 | 4.3 KB | [TEXT/CWIE] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Janne Salmijarvi Optimizer (music/janneSalmijarviOptimizer)
| ext
| Supported |
1%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Mon Mar 26 10:49:52 2001, modified Mon Mar 26 10:49:52 2001, creator 'CWIE', type ASCII, 3620 bytes "nsDictionary.js" , at 0xea4 415 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| dearkID
| deark: macbinary
| default
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [CWIE] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0f 6e 73 44 69 63 74 | 69 6f 6e 61 72 79 2e 6a |..nsDict|ionary.j|
|00000010| 73 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |s.......|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 00 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 0e 24 00 | 00 01 9f b6 e5 15 a0 b6 |......$.|........|
|00000060| e5 15 a0 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 9a 09 00 00 |........|........|
|00000080| 2f 2a 0d 20 2a 20 54 68 | 65 20 63 6f 6e 74 65 6e |/*. * Th|e conten|
|00000090| 74 73 20 6f 66 20 74 68 | 69 73 20 66 69 6c 65 20 |ts of th|is file |
|000000a0| 61 72 65 20 73 75 62 6a | 65 63 74 20 74 6f 20 74 |are subj|ect to t|
|000000b0| 68 65 20 4d 6f 7a 69 6c | 6c 61 20 50 75 62 6c 69 |he Mozil|la Publi|
|000000c0| 63 20 4c 69 63 65 6e 73 | 65 20 56 65 72 73 69 6f |c Licens|e Versio|
|000000d0| 6e 0d 20 2a 20 31 2e 31 | 20 28 74 68 65 20 22 4c |n. * 1.1| (the "L|
|000000e0| 69 63 65 6e 73 65 22 29 | 3b 20 79 6f 75 20 6d 61 |icense")|; you ma|
|000000f0| 79 20 6e 6f 74 20 75 73 | 65 20 74 68 69 73 20 66 |y not us|e this f|
|00000100| 69 6c 65 20 65 78 63 65 | 70 74 20 69 6e 20 63 6f |ile exce|pt in co|
|00000110| 6d 70 6c 69 61 6e 63 65 | 20 77 69 74 68 20 74 68 |mpliance| with th|
|00000120| 65 0d 20 2a 20 4c 69 63 | 65 6e 73 65 2e 20 59 6f |e. * Lic|ense. Yo|
|00000130| 75 20 6d 61 79 20 6f 62 | 74 61 69 6e 20 61 20 63 |u may ob|tain a c|
|00000140| 6f 70 79 20 6f 66 20 74 | 68 65 20 4c 69 63 65 6e |opy of t|he Licen|
|00000150| 73 65 20 61 74 20 68 74 | 74 70 3a 2f 2f 77 77 77 |se at ht|tp://www|
|00000160| 2e 6d 6f 7a 69 6c 6c 61 | 2e 6f 72 67 2f 4d 50 4c |.mozilla|.org/MPL|
|00000170| 2f 0d 20 2a 20 0d 20 2a | 20 53 6f 66 74 77 61 72 |/. * . *| Softwar|
|00000180| 65 20 64 69 73 74 72 69 | 62 75 74 65 64 20 75 6e |e distri|buted un|
|00000190| 64 65 72 20 74 68 65 20 | 4c 69 63 65 6e 73 65 20 |der the |License |
|000001a0| 69 73 20 64 69 73 74 72 | 69 62 75 74 65 64 20 6f |is distr|ibuted o|
|000001b0| 6e 20 61 6e 20 22 41 53 | 20 49 53 22 20 62 61 73 |n an "AS| IS" bas|
|000001c0| 69 73 2c 0d 20 2a 20 57 | 49 54 48 4f 55 54 20 57 |is,. * W|ITHOUT W|
|000001d0| 41 52 52 41 4e 54 59 20 | 4f 46 20 41 4e 59 20 4b |ARRANTY |OF ANY K|
|000001e0| 49 4e 44 2c 20 65 69 74 | 68 65 72 20 65 78 70 72 |IND, eit|her expr|
|000001f0| 65 73 73 20 6f 72 20 69 | 6d 70 6c 69 65 64 2e 20 |ess or i|mplied. |
|00000200| 53 65 65 20 74 68 65 20 | 4c 69 63 65 6e 73 65 20 |See the |License |
|00000210| 66 6f 72 0d 20 2a 20 74 | 68 65 20 73 70 65 63 69 |for. * t|he speci|
|00000220| 66 69 63 20 6c 61 6e 67 | 75 61 67 65 20 67 6f 76 |fic lang|uage gov|
|00000230| 65 72 6e 69 6e 67 20 72 | 69 67 68 74 73 20 61 6e |erning r|ights an|
|00000240| 64 20 6c 69 6d 69 74 61 | 74 69 6f 6e 73 20 75 6e |d limita|tions un|
|00000250| 64 65 72 20 74 68 65 20 | 4c 69 63 65 6e 73 65 2e |der the |License.|
|00000260| 0d 20 2a 20 0d 20 2a 20 | 54 68 65 20 4f 72 69 67 |. * . * |The Orig|
|00000270| 69 6e 61 6c 20 43 6f 64 | 65 20 69 73 20 4d 6f 7a |inal Cod|e is Moz|
|00000280| 69 6c 6c 61 20 58 50 43 | 4f 4d 20 44 69 63 74 69 |illa XPC|OM Dicti|
|00000290| 6f 6e 61 72 79 2e 0d 20 | 2a 20 0d 20 2a 20 54 68 |onary.. |* . * Th|
|000002a0| 65 20 49 6e 69 74 69 61 | 6c 20 44 65 76 65 6c 6f |e Initia|l Develo|
|000002b0| 70 65 72 20 6f 66 20 74 | 68 65 20 4f 72 69 67 69 |per of t|he Origi|
|000002c0| 6e 61 6c 20 43 6f 64 65 | 20 69 73 20 44 69 67 69 |nal Code| is Digi|
|000002d0| 74 61 6c 20 43 72 65 61 | 74 69 6f 6e 73 20 32 2c |tal Crea|tions 2,|
|000002e0| 20 49 6e 63 2e 0d 20 2a | 20 50 6f 72 74 69 6f 6e | Inc.. *| Portion|
|000002f0| 73 20 63 72 65 61 74 65 | 64 20 62 79 20 44 69 67 |s create|d by Dig|
|00000300| 69 74 61 6c 20 43 72 65 | 61 74 69 6f 6e 73 20 32 |ital Cre|ations 2|
|00000310| 2c 20 49 6e 63 2e 20 61 | 72 65 20 43 6f 70 79 72 |, Inc. a|re Copyr|
|00000320| 69 67 68 74 20 28 43 29 | 20 32 30 30 30 20 44 69 |ight (C)| 2000 Di|
|00000330| 67 69 74 61 6c 0d 20 2a | 20 43 72 65 61 74 69 6f |gital. *| Creatio|
|00000340| 6e 73 20 32 2c 20 49 6e | 63 2e 20 20 41 6c 6c 20 |ns 2, In|c. All |
|00000350| 52 69 67 68 74 73 20 52 | 65 73 65 72 76 65 64 2e |Rights R|eserved.|
|00000360| 0d 20 2a 20 0d 20 2a 20 | 43 6f 6e 74 72 69 62 75 |. * . * |Contribu|
|00000370| 74 6f 72 28 73 29 3a 20 | 4d 61 72 74 69 6a 6e 20 |tor(s): |Martijn |
|00000380| 50 69 65 74 65 72 73 20 | 3c 6d 6a 40 64 69 67 69 |Pieters |<mj@digi|
|00000390| 63 6f 6f 6c 2e 63 6f 6d | 3e 20 28 6f 72 69 67 69 |cool.com|> (origi|
|000003a0| 6e 61 6c 20 61 75 74 68 | 6f 72 29 0d 20 2a 2f 0d |nal auth|or). */.|
|000003b0| 0d 2f 2a 0d 20 2a 20 20 | 6e 73 44 69 63 74 69 6f |./*. * |nsDictio|
|000003c0| 6e 61 72 79 20 58 50 43 | 4f 4d 20 63 6f 6d 70 6f |nary XPC|OM compo|
|000003d0| 6e 65 6e 74 0d 20 2a 20 | 20 56 65 72 73 69 6f 6e |nent. * | Version|
|000003e0| 3a 20 24 52 65 76 69 73 | 69 6f 6e 3a 20 31 2e 34 |: $Revis|ion: 1.4|
|000003f0| 20 24 0d 20 2a 0d 20 2a | 20 20 24 49 64 3a 20 6e | $. *. *| $Id: n|
|00000400| 73 44 69 63 74 69 6f 6e | 61 72 79 2e 6a 73 2c 76 |sDiction|ary.js,v|
|00000410| 20 31 2e 34 20 32 30 30 | 30 2f 30 39 2f 31 33 20 | 1.4 200|0/09/13 |
|00000420| 32 33 3a 35 31 3a 32 37 | 20 72 61 79 77 25 6e 65 |23:51:27| rayw%ne|
|00000430| 74 73 63 61 70 65 2e 63 | 6f 6d 20 45 78 70 20 24 |tscape.c|om Exp $|
|00000440| 0d 20 2a 2f 0d 0d 2f 2a | 0d 20 2a 20 43 6f 6e 73 |. */../*|. * Cons|
|00000450| 74 61 6e 74 73 0d 20 2a | 2f 0d 63 6f 6e 73 74 20 |tants. *|/.const |
|00000460| 44 49 43 54 49 4f 4e 41 | 52 59 5f 43 4f 4e 54 52 |DICTIONA|RY_CONTR|
|00000470| 41 43 54 49 44 20 3d 20 | 27 40 6d 6f 7a 69 6c 6c |ACTID = |'@mozill|
|00000480| 61 2e 6f 72 67 2f 64 69 | 63 74 69 6f 6e 61 72 79 |a.org/di|ctionary|
|00000490| 3b 31 27 3b 0d 63 6f 6e | 73 74 20 44 49 43 54 49 |;1';.con|st DICTI|
|000004a0| 4f 4e 41 52 59 5f 43 49 | 44 20 3d 20 43 6f 6d 70 |ONARY_CI|D = Comp|
|000004b0| 6f 6e 65 6e 74 73 2e 49 | 44 28 27 7b 31 64 64 30 |onents.I|D('{1dd0|
|000004c0| 63 62 34 35 2d 61 65 61 | 33 2d 34 61 35 32 2d 38 |cb45-aea|3-4a52-8|
|000004d0| 62 32 39 2d 30 31 34 32 | 39 61 35 34 32 38 36 33 |b29-0142|9a542863|
|000004e0| 7d 27 29 3b 0d 63 6f 6e | 73 74 20 44 49 43 54 49 |}');.con|st DICTI|
|000004f0| 4f 4e 41 52 59 5f 49 49 | 44 20 3d 20 43 6f 6d 70 |ONARY_II|D = Comp|
|00000500| 6f 6e 65 6e 74 73 2e 69 | 6e 74 65 72 66 61 63 65 |onents.i|nterface|
|00000510| 73 2e 6e 73 49 44 69 63 | 74 69 6f 6e 61 72 79 3b |s.nsIDic|tionary;|
|00000520| 0d 0d 2f 2a 0d 20 2a 20 | 43 6c 61 73 73 20 64 65 |../*. * |Class de|
|00000530| 66 69 6e 69 74 69 6f 6e | 73 0d 20 2a 2f 0d 0d 2f |finition|s. */../|
|00000540| 2a 20 54 68 65 20 6e 73 | 44 69 63 74 69 6f 6e 61 |* The ns|Dictiona|
|00000550| 72 79 20 63 6c 61 73 73 | 20 63 6f 6e 73 74 72 75 |ry class| constru|
|00000560| 63 74 6f 72 2e 20 2a 2f | 0d 66 75 6e 63 74 69 6f |ctor. */|.functio|
|00000570| 6e 20 6e 73 44 69 63 74 | 69 6f 6e 61 72 79 28 29 |n nsDict|ionary()|
|00000580| 20 7b 0d 20 20 20 20 74 | 68 69 73 2e 68 61 73 68 | {. t|his.hash|
|00000590| 20 3d 20 7b 7d 3b 0d 7d | 0d 0d 2f 2a 20 74 68 65 | = {};.}|../* the|
|000005a0| 20 6e 73 44 69 63 74 69 | 6f 6e 61 72 79 20 63 6c | nsDicti|onary cl|
|000005b0| 61 73 73 20 64 65 66 20 | 2a 2f 0d 6e 73 44 69 63 |ass def |*/.nsDic|
|000005c0| 74 69 6f 6e 61 72 79 2e | 70 72 6f 74 6f 74 79 70 |tionary.|prototyp|
|000005d0| 65 3d 20 7b 0d 20 20 20 | 20 68 61 73 4b 65 79 3a |e= {. | hasKey:|
|000005e0| 20 66 75 6e 63 74 69 6f | 6e 28 6b 65 79 29 20 7b | functio|n(key) {|
|000005f0| 20 72 65 74 75 72 6e 20 | 74 68 69 73 2e 68 61 73 | return |this.has|
|00000600| 68 2e 68 61 73 4f 77 6e | 50 72 6f 70 65 72 74 79 |h.hasOwn|Property|
|00000610| 28 6b 65 79 29 20 7d 2c | 0d 0d 20 20 20 20 67 65 |(key) },|.. ge|
|00000620| 74 4b 65 79 73 3a 20 66 | 75 6e 63 74 69 6f 6e 28 |tKeys: f|unction(|
|00000630| 63 6f 75 6e 74 29 20 7b | 0d 20 20 20 20 20 20 20 |count) {|. |
|00000640| 20 76 61 72 20 61 73 4b | 65 79 73 20 3d 20 6e 65 | var asK|eys = ne|
|00000650| 77 20 41 72 72 61 79 28 | 29 3b 0d 20 20 20 20 20 |w Array(|);. |
|00000660| 20 20 20 66 6f 72 20 28 | 76 61 72 20 73 4b 65 79 | for (|var sKey|
|00000670| 20 69 6e 20 74 68 69 73 | 2e 68 61 73 68 29 20 61 | in this|.hash) a|
|00000680| 73 4b 65 79 73 2e 70 75 | 73 68 28 73 4b 65 79 29 |sKeys.pu|sh(sKey)|
|00000690| 3b 0d 20 20 20 20 20 20 | 20 20 63 6f 75 6e 74 2e |;. | count.|
|000006a0| 76 61 6c 75 65 20 3d 20 | 61 73 4b 65 79 73 2e 6c |value = |asKeys.l|
|000006b0| 65 6e 67 74 68 3b 0d 20 | 20 20 20 20 20 20 20 72 |ength;. | r|
|000006c0| 65 74 75 72 6e 20 61 73 | 4b 65 79 73 3b 0d 20 20 |eturn as|Keys;. |
|000006d0| 20 20 7d 2c 0d 0d 20 20 | 20 20 67 65 74 56 61 6c | },.. | getVal|
|000006e0| 75 65 3a 20 66 75 6e 63 | 74 69 6f 6e 28 6b 65 79 |ue: func|tion(key|
|000006f0| 29 20 7b 20 0d 20 20 20 | 20 20 20 20 20 69 66 20 |) { . | if |
|00000700| 28 21 74 68 69 73 2e 68 | 61 73 4b 65 79 28 6b 65 |(!this.h|asKey(ke|
|00000710| 79 29 29 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |y)). | |
|00000720| 74 68 72 6f 77 20 43 6f | 6d 70 6f 6e 65 6e 74 73 |throw Co|mponents|
|00000730| 2e 45 78 63 65 70 74 69 | 6f 6e 28 22 4b 65 79 20 |.Excepti|on("Key |
|00000740| 64 6f 65 73 6e 27 74 20 | 65 78 69 73 74 22 29 3b |doesn't |exist");|
|00000750| 0d 20 20 20 20 20 20 20 | 20 72 65 74 75 72 6e 20 |. | return |
|00000760| 74 68 69 73 2e 68 61 73 | 68 5b 6b 65 79 5d 3b 20 |this.has|h[key]; |
|00000770| 0d 20 20 20 20 7d 2c 0d | 0d 20 20 20 20 73 65 74 |. },.|. set|
|00000780| 56 61 6c 75 65 3a 20 66 | 75 6e 63 74 69 6f 6e 28 |Value: f|unction(|
|00000790| 6b 65 79 2c 20 76 61 6c | 75 65 29 20 7b 20 74 68 |key, val|ue) { th|
|000007a0| 69 73 2e 68 61 73 68 5b | 6b 65 79 5d 20 3d 20 76 |is.hash[|key] = v|
|000007b0| 61 6c 75 65 3b 20 7d 2c | 0d 20 20 20 20 0d 20 20 |alue; },|. . |
|000007c0| 20 20 64 65 6c 65 74 65 | 56 61 6c 75 65 3a 20 66 | delete|Value: f|
|000007d0| 75 6e 63 74 69 6f 6e 28 | 6b 65 79 29 20 7b 0d 20 |unction(|key) {. |
|000007e0| 20 20 20 20 20 20 20 69 | 66 20 28 21 74 68 69 73 | i|f (!this|
|000007f0| 2e 68 61 73 4b 65 79 28 | 6b 65 79 29 29 0d 20 20 |.hasKey(|key)). |
|00000800| 20 20 20 20 20 20 20 20 | 20 20 74 68 72 6f 77 20 | | throw |
|00000810| 43 6f 6d 70 6f 6e 65 6e | 74 73 2e 45 78 63 65 70 |Componen|ts.Excep|
|00000820| 74 69 6f 6e 28 22 4b 65 | 79 20 64 6f 65 73 6e 27 |tion("Ke|y doesn'|
|00000830| 74 20 65 78 69 73 74 22 | 29 3b 0d 20 20 20 20 20 |t exist"|);. |
|00000840| 20 20 20 76 61 72 20 6f | 4f 6c 64 20 3d 20 74 68 | var o|Old = th|
|00000850| 69 73 2e 67 65 74 56 61 | 6c 75 65 28 6b 65 79 29 |is.getVa|lue(key)|
|00000860| 3b 0d 20 20 20 20 20 20 | 20 20 64 65 6c 65 74 65 |;. | delete|
|00000870| 20 74 68 69 73 2e 68 61 | 73 68 5b 6b 65 79 5d 3b | this.ha|sh[key];|
|00000880| 0d 20 20 20 20 20 20 20 | 20 72 65 74 75 72 6e 20 |. | return |
|00000890| 6f 4f 6c 64 3b 0d 20 20 | 20 20 7d 2c 0d 0d 20 20 |oOld;. | },.. |
|000008a0| 20 20 63 6c 65 61 72 3a | 20 66 75 6e 63 74 69 6f | clear:| functio|
|000008b0| 6e 28 29 20 7b 20 74 68 | 69 73 2e 68 61 73 68 20 |n() { th|is.hash |
|000008c0| 3d 20 7b 7d 3b 20 7d 2c | 0d 0d 20 20 20 20 51 75 |= {}; },|.. Qu|
|000008d0| 65 72 79 49 6e 74 65 72 | 66 61 63 65 3a 20 66 75 |eryInter|face: fu|
|000008e0| 6e 63 74 69 6f 6e 28 69 | 69 64 29 20 7b 0d 20 20 |nction(i|id) {. |
|000008f0| 20 20 20 20 20 20 69 66 | 20 28 21 69 69 64 2e 65 | if| (!iid.e|
|00000900| 71 75 61 6c 73 28 43 6f | 6d 70 6f 6e 65 6e 74 73 |quals(Co|mponents|
|00000910| 2e 69 6e 74 65 72 66 61 | 63 65 73 2e 6e 73 49 53 |.interfa|ces.nsIS|
|00000920| 75 70 70 6f 72 74 73 29 | 20 26 26 0d 20 20 20 20 |upports)| &&. |
|00000930| 20 20 20 20 20 20 20 20 | 21 69 69 64 2e 65 71 75 | |!iid.equ|
|00000940| 61 6c 73 28 44 49 43 54 | 49 4f 4e 41 52 59 5f 49 |als(DICT|IONARY_I|
|00000950| 49 44 29 29 0d 20 20 20 | 20 20 20 20 20 20 20 20 |ID)). | |
|00000960| 20 74 68 72 6f 77 20 43 | 6f 6d 70 6f 6e 65 6e 74 | throw C|omponent|
|00000970| 73 2e 72 65 73 75 6c 74 | 73 2e 4e 53 5f 45 52 52 |s.result|s.NS_ERR|
|00000980| 4f 52 5f 4e 4f 5f 49 4e | 54 45 52 46 41 43 45 3b |OR_NO_IN|TERFACE;|
|00000990| 0d 20 20 20 20 20 20 20 | 20 72 65 74 75 72 6e 20 |. | return |
|000009a0| 74 68 69 73 3b 0d 20 20 | 20 20 7d 0d 7d 3b 0d 0d |this;. | }.};..|
|000009b0| 2f 2a 0d 20 2a 20 4f 62 | 6a 65 63 74 73 0d 20 2a |/*. * Ob|jects. *|
|000009c0| 2f 0d 0d 2f 2a 20 6e 73 | 44 69 63 74 69 6f 6e 61 |/../* ns|Dictiona|
|000009d0| 72 79 20 4d 6f 64 75 6c | 65 20 28 66 6f 72 20 58 |ry Modul|e (for X|
|000009e0| 50 43 4f 4d 20 72 65 67 | 69 73 74 72 61 74 69 6f |PCOM reg|istratio|
|000009f0| 6e 29 20 2a 2f 0d 76 61 | 72 20 6e 73 44 69 63 74 |n) */.va|r nsDict|
|00000a00| 69 6f 6e 61 72 79 4d 6f | 64 75 6c 65 20 3d 20 7b |ionaryMo|dule = {|
|00000a10| 0d 20 20 20 20 72 65 67 | 69 73 74 65 72 53 65 6c |. reg|isterSel|
|00000a20| 66 3a 20 66 75 6e 63 74 | 69 6f 6e 28 63 6f 6d 70 |f: funct|ion(comp|
|00000a30| 4d 67 72 2c 20 66 69 6c | 65 53 70 65 63 2c 20 6c |Mgr, fil|eSpec, l|
|00000a40| 6f 63 61 74 69 6f 6e 2c | 20 74 79 70 65 29 20 7b |ocation,| type) {|
|00000a50| 0d 20 20 20 20 20 20 20 | 20 63 6f 6d 70 4d 67 72 |. | compMgr|
|00000a60| 2e 72 65 67 69 73 74 65 | 72 43 6f 6d 70 6f 6e 65 |.registe|rCompone|
|00000a70| 6e 74 57 69 74 68 54 79 | 70 65 28 44 49 43 54 49 |ntWithTy|pe(DICTI|
|00000a80| 4f 4e 41 52 59 5f 43 49 | 44 2c 20 0d 20 20 20 20 |ONARY_CI|D, . |
|00000a90| 20 20 20 20 20 20 20 20 | 22 6e 73 44 69 63 74 69 | |"nsDicti|
|00000aa0| 6f 6e 61 72 79 20 4a 53 | 20 63 6f 6d 70 6f 6e 65 |onary JS| compone|
|00000ab0| 6e 74 22 2c 20 44 49 43 | 54 49 4f 4e 41 52 59 5f |nt", DIC|TIONARY_|
|00000ac0| 43 4f 4e 54 52 41 43 54 | 49 44 2c 20 66 69 6c 65 |CONTRACT|ID, file|
|00000ad0| 53 70 65 63 2c 20 6c 6f | 63 61 74 69 6f 6e 2c 0d |Spec, lo|cation,.|
|00000ae0| 20 20 20 20 20 20 20 20 | 20 20 20 20 74 72 75 65 | | true|
|00000af0| 2c 20 74 72 75 65 2c 20 | 74 79 70 65 29 3b 0d 20 |, true, |type);. |
|00000b00| 20 20 20 7d 2c 0d 0d 20 | 20 20 20 67 65 74 43 6c | },.. | getCl|
|00000b10| 61 73 73 4f 62 6a 65 63 | 74 3a 20 66 75 6e 63 74 |assObjec|t: funct|
|00000b20| 69 6f 6e 28 63 6f 6d 70 | 4d 67 72 2c 20 63 69 64 |ion(comp|Mgr, cid|
|00000b30| 2c 20 69 69 64 29 20 7b | 0d 20 20 20 20 20 20 20 |, iid) {|. |
|00000b40| 20 69 66 20 28 21 63 69 | 64 2e 65 71 75 61 6c 73 | if (!ci|d.equals|
|00000b50| 28 44 49 43 54 49 4f 4e | 41 52 59 5f 43 49 44 29 |(DICTION|ARY_CID)|
|00000b60| 29 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 74 68 |). | th|
|00000b70| 72 6f 77 20 43 6f 6d 70 | 6f 6e 65 6e 74 73 2e 72 |row Comp|onents.r|
|00000b80| 65 73 75 6c 74 73 2e 4e | 53 5f 45 52 52 4f 52 5f |esults.N|S_ERROR_|
|00000b90| 4e 4f 5f 49 4e 54 45 52 | 46 41 43 45 3b 0d 0d 20 |NO_INTER|FACE;.. |
|00000ba0| 20 20 20 20 20 20 20 69 | 66 20 28 21 69 69 64 2e | i|f (!iid.|
|00000bb0| 65 71 75 61 6c 73 28 43 | 6f 6d 70 6f 6e 65 6e 74 |equals(C|omponent|
|00000bc0| 73 2e 69 6e 74 65 72 66 | 61 63 65 73 2e 6e 73 49 |s.interf|aces.nsI|
|00000bd0| 46 61 63 74 6f 72 79 29 | 29 0d 20 20 20 20 20 20 |Factory)|). |
|00000be0| 20 20 20 20 20 20 74 68 | 72 6f 77 20 43 6f 6d 70 | th|row Comp|
|00000bf0| 6f 6e 65 6e 74 73 2e 72 | 65 73 75 6c 74 73 2e 4e |onents.r|esults.N|
|00000c00| 53 5f 45 52 52 4f 52 5f | 4e 4f 54 5f 49 4d 50 4c |S_ERROR_|NOT_IMPL|
|00000c10| 45 4d 45 4e 54 45 44 3b | 0d 0d 20 20 20 20 20 20 |EMENTED;|.. |
|00000c20| 20 20 72 65 74 75 72 6e | 20 6e 73 44 69 63 74 69 | return| nsDicti|
|00000c30| 6f 6e 61 72 79 46 61 63 | 74 6f 72 79 3b 0d 20 20 |onaryFac|tory;. |
|00000c40| 20 20 7d 2c 0d 0d 20 20 | 20 20 63 61 6e 55 6e 6c | },.. | canUnl|
|00000c50| 6f 61 64 3a 20 66 75 6e | 63 74 69 6f 6e 28 63 6f |oad: fun|ction(co|
|00000c60| 6d 70 4d 67 72 29 20 7b | 20 72 65 74 75 72 6e 20 |mpMgr) {| return |
|00000c70| 74 72 75 65 3b 20 7d 0d | 7d 3b 0d 0d 2f 2a 20 6e |true; }.|};../* n|
|00000c80| 73 44 69 63 74 69 6f 6e | 61 72 79 20 43 6c 61 73 |sDiction|ary Clas|
|00000c90| 73 20 46 61 63 74 6f 72 | 79 20 2a 2f 0d 76 61 72 |s Factor|y */.var|
|00000ca0| 20 6e 73 44 69 63 74 69 | 6f 6e 61 72 79 46 61 63 | nsDicti|onaryFac|
|00000cb0| 74 6f 72 79 20 3d 20 7b | 0d 20 20 20 20 63 72 65 |tory = {|. cre|
|00000cc0| 61 74 65 49 6e 73 74 61 | 6e 63 65 3a 20 66 75 6e |ateInsta|nce: fun|
|00000cd0| 63 74 69 6f 6e 28 6f 75 | 74 65 72 2c 20 69 69 64 |ction(ou|ter, iid|
|00000ce0| 29 20 7b 0d 20 20 20 20 | 20 20 20 20 69 66 20 28 |) {. | if (|
|00000cf0| 6f 75 74 65 72 20 21 3d | 20 6e 75 6c 6c 29 0d 20 |outer !=| null). |
|00000d00| 20 20 20 20 20 20 20 20 | 20 20 20 74 68 72 6f 77 | | throw|
|00000d10| 20 43 6f 6d 70 6f 6e 65 | 6e 74 73 2e 72 65 73 75 | Compone|nts.resu|
|00000d20| 6c 74 73 2e 4e 53 5f 45 | 52 52 4f 52 5f 4e 4f 5f |lts.NS_E|RROR_NO_|
|00000d30| 41 47 47 52 45 47 41 54 | 49 4f 4e 3b 0d 20 20 20 |AGGREGAT|ION;. |
|00000d40| 20 0d 20 20 20 20 20 20 | 20 20 69 66 20 28 21 69 | . | if (!i|
|00000d50| 69 64 2e 65 71 75 61 6c | 73 28 44 49 43 54 49 4f |id.equal|s(DICTIO|
|00000d60| 4e 41 52 59 5f 49 49 44 | 29 20 26 26 0d 20 20 20 |NARY_IID|) &&. |
|00000d70| 20 20 20 20 20 20 20 20 | 20 21 69 69 64 2e 65 71 | | !iid.eq|
|00000d80| 75 61 6c 73 28 43 6f 6d | 70 6f 6e 65 6e 74 73 2e |uals(Com|ponents.|
|00000d90| 69 6e 74 65 72 66 61 63 | 65 73 2e 6e 73 49 53 75 |interfac|es.nsISu|
|00000da0| 70 70 6f 72 74 73 29 29 | 0d 20 20 20 20 20 20 20 |pports))|. |
|00000db0| 20 20 20 20 20 74 68 72 | 6f 77 20 43 6f 6d 70 6f | thr|ow Compo|
|00000dc0| 6e 65 6e 74 73 2e 72 65 | 73 75 6c 74 73 2e 4e 53 |nents.re|sults.NS|
|00000dd0| 5f 45 52 52 4f 52 5f 49 | 4e 56 41 4c 49 44 5f 41 |_ERROR_I|NVALID_A|
|00000de0| 52 47 3b 0d 0d 20 20 20 | 20 20 20 20 20 72 65 74 |RG;.. | ret|
|00000df0| 75 72 6e 20 6e 65 77 20 | 6e 73 44 69 63 74 69 6f |urn new |nsDictio|
|00000e00| 6e 61 72 79 28 29 3b 0d | 20 20 20 20 7d 0d 7d 0d |nary();.| }.}.|
|00000e10| 0d 2f 2a 0d 20 2a 20 46 | 75 6e 63 74 69 6f 6e 73 |./*. * F|unctions|
|00000e20| 0d 20 2a 2f 0d 0d 2f 2a | 20 6d 6f 64 75 6c 65 20 |. */../*| module |
|00000e30| 69 6e 69 74 69 61 6c 69 | 73 61 74 69 6f 6e 20 2a |initiali|sation *|
|00000e40| 2f 0d 66 75 6e 63 74 69 | 6f 6e 20 4e 53 47 65 74 |/.functi|on NSGet|
|00000e50| 4d 6f 64 75 6c 65 28 63 | 6f 6d 4d 67 72 2c 20 66 |Module(c|omMgr, f|
|00000e60| 69 6c 65 53 70 65 63 29 | 20 7b 20 72 65 74 75 72 |ileSpec)| { retur|
|00000e70| 6e 20 6e 73 44 69 63 74 | 69 6f 6e 61 72 79 4d 6f |n nsDict|ionaryMo|
|00000e80| 64 75 6c 65 3b 20 7d 0d | 0d 2f 2f 20 76 69 6d 3a |dule; }.|.// vim:|
|00000e90| 73 77 3d 34 3a 73 72 3a | 73 74 61 3a 65 74 3a 73 |sw=4:sr:|sta:et:s|
|00000ea0| 74 73 3a 0d 00 00 00 00 | 00 00 00 00 00 00 00 00 |ts:.....|........|
|00000eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f00| 00 00 01 00 00 00 01 5e | 00 00 00 5e 00 00 00 41 |.......^|...^...A|
|00000f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001000| 00 00 00 5a a2 fc 6f 20 | 3f e5 32 30 00 04 00 00 |...Z..o |?.20....|
|00001010| 00 00 00 00 00 00 b6 e4 | dd 60 b6 e4 dd 60 00 00 |........|.`...`..|
|00001020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 16 70 |........|.......p|
|00001030| 69 6e 6b 65 72 74 6f 6e | 25 6e 65 74 73 63 61 70 |inkerton|%netscap|
|00001040| 65 2e 63 6f 6d 00 00 00 | 0f 6e 73 44 69 63 74 69 |e.com...|.nsDicti|
|00001050| 6f 6e 61 72 79 2e 6a 73 | 00 00 00 00 00 00 00 00 |onary.js|........|
|00001060| 01 00 00 00 01 5e 00 00 | 00 5e 00 00 00 41 53 4f |.....^..|.^...ASO|
|00001070| 52 54 03 ea 00 80 00 1c | 00 32 00 00 63 6b 69 64 |RT......|.2..ckid|
|00001080| 00 00 00 0a 00 80 00 00 | 00 00 00 00 0c 1e 65 bc |........|......e.|
|00001090| 0e 50 72 6f 6a 65 63 74 | 6f 72 20 44 61 74 61 00 |.Project|or Data.|
|000010a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+